/* eslint-disable */
import { createApp } from 'vue';
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';
import App from './App.vue';

window.onload = function () {
	createAppContainer();
};

function createAppContainer() {
	const container = document.createElement('div');
	container.setAttribute('id', 'example-content-app');
	document.body.appendChild(container);
	const url = window.location.href;
	console.log(url);
	const app = createApp(App, { url: url });
	app.use(Antd).mount('#example-content-app');
}
chrome.runtime.onMessage.addListener(function (request) {
	if (request.target === 'CONTENT' && request.from === 'BACKGROUND') {
	}
});
